package com.lishuang.org.mapper;

import com.lishuang.basic.mapper.BaseMapper;
import com.lishuang.org.domain.Employee;

import java.util.List;

/**
 * 部门Mapper接口
 */
public interface EmployeeMapper extends BaseMapper<Employee> {

    //删除员工-角色中间表数据
    void removeEmployeeRole(Long id);
    //添加员工-角色中间表数据
    void saveEmployeeRole(Employee employee);
    //通过Logininfo查询Employee
    Employee loadByLogininfoId(Long id);

    /**
     * 根据店铺ID查询所有员工
     * @param shopId
     * @return
     */
    List<Employee> list(Long shopId);
}